#include "app.h"

RTMPNetConnection* 
App::Connect(const std::wstring& appName,
    RTMPNetConnection::Listener *listener,std::function<void(bool)> accept)  {

    Log("appName : %s\n", appName.c_str());

    if( appName != L"test" ) {
        accept(false);
        return nullptr;
    }
    return nullptr;
}

RTMPNetConnection* App::GetRTMPNetConnection(std::wstring tag) {
    return nullptr;
}


RTMPNetStream* AppRTMPNetConnection::CreateStream(uint32_t streamId, uint32_t audioCaps, uint32_t videoCaps,
                                                          RTMPNetStream::Listener *listener) {
    return nullptr;
}

void AppRTMPNetConnection::DeleteStream(RTMPNetStream *stream) {
    return ;
}